import greenfoot.*;  // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)

/**
 * Write a description of class Textanzeige here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class Textanzeige  extends Actor
{
    public Textanzeige(String text)
    {
        aktualisiereText(text);  
    }
    
    public void aktualisiereText(String text)
    {
        GreenfootImage img = new GreenfootImage( 200, 20 );
        img.drawString(text, 40, 18 );
        setImage( img );   
    }
}
